package com.smile.service;

import com.smile.request.AssociateRequest;
import com.smile.request.TranslateRequest;
import com.smile.result.AssociateResponseResult;
import com.smile.result.TranslateResponseResult;

/**
 * <p>翻译服务类</p>
 *
 * @author hzhan
 */
public interface ITranslateService {

    /**
     * 翻译 api
     */
    String TRANSLATE_URL = "http://fy.iciba.com/ajax.php";

    /**
     * 联想 Api
     */
    String ASSOCIATE_URL = "http://dict-mobile.iciba.com/interface/index.php";

    /**
     * 释义 api
     */
    String INTERPRETATION_URL = "http://www.iciba.com/index.php";

    /**
     * <p>翻译</p>
     *
     * @param request
     * @return
     */
    TranslateResponseResult doTramslate(TranslateRequest request);


    /**
     * <p>获取联想</p>
     *
     * @param request
     * @return
     */
    AssociateResponseResult getAssociate(AssociateRequest request);


}
